package com.eyedsion.his.web.entity.businessdata;

import com.eyedsion.his.web.entity.common.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 彭长云
 * @Description:
 * @date 2018/12/14 13:47
 */
@Entity
@Table(name = "ih_settlement")
public class IhSettlement extends BaseEntity{
    @Id
    private String code;//结算记录PK [CODE, VARCHAR2, 32]
    private String patientCode;//病人编码 [PATIENT_CODE, VARCHAR2, 32]
    private String inpCode;//住院号 [INP_CODE, VARCHAR2, 32]
    private String patCostcateCode;//病人费别 [PAT_COSTCATE_CODE, VARCHAR2, 32]
    private String invoiceNo;//发票号码 [INVOICE_NO, VARCHAR2, 32]
    private String serviceWindowCode;//业务窗口 [SERVICE_WINDOW_CODE, VARCHAR2, 32]
    private String settlType;//结算类别;1出院结算2中途结算 [SETTL_TYPE, VARCHAR2, 1]
    private Date settlBeginDate;//结算开始时间 [SETTL_BEGIN_DATE, DATE, 7]
    private Date settlEndDate;//结算结束时间 [SETTL_END_DATE, DATE, 7]
    private BigDecimal prepayTotal;//预交金合计 [PREPAY_TOTAL, NUMBER, 14.4]
    private BigDecimal costTotal;//费用合计 [COST_TOTAL, NUMBER, 14.4]
    private BigDecimal preferTotal;//优惠金额合计 [PREFER_TOTAL, NUMBER, 14.4]
    private BigDecimal insPayTotal;//保险报销合计 [INS_PAY_TOTAL, NUMBER, 14.4]
    private BigDecimal offsetPrepayTotal;//冲预交金额 [OFFSET_PREPAY_TOTAL, NUMBER, 14.4]
    private BigDecimal returnMoney;//退补金额 [RETURN_MONEY, NUMBER, 14.4]
    private BigDecimal arrearage;//结算欠费 [ARREARAGE, NUMBER, 14.4]
    private String tstatus;//结算状态; 1-正常2已取消（作废/删除） [TSTATUS, VARCHAR2, 1]
    private String insSettTstatus;//医保结算状态;1正常2已取消 [INS_SETT_TSTATUS, VARCHAR2, 1]
    private String remark;//备注 [REMARK, VARCHAR2, 2000]
    private String createUser;//创建人 [CREATE_USER, VARCHAR2, 32]
    private Date createTime;//创建时间;结算时间 [CREATE_TIME, DATE, 7]
    private Date updateTime;//更新时间 [UPDATE_TIME, DATE, 7]
    private String outReason;//出院原因 [OUT_REASON, VARCHAR2, 32]

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPatientCode() {
        return patientCode;
    }

    public void setPatientCode(String patientCode) {
        this.patientCode = patientCode;
    }

    public String getInpCode() {
        return inpCode;
    }

    public void setInpCode(String inpCode) {
        this.inpCode = inpCode;
    }

    public String getPatCostcateCode() {
        return patCostcateCode;
    }

    public void setPatCostcateCode(String patCostcateCode) {
        this.patCostcateCode = patCostcateCode;
    }

    public String getInvoiceNo() {
        return invoiceNo;
    }

    public void setInvoiceNo(String invoiceNo) {
        this.invoiceNo = invoiceNo;
    }

    public String getServiceWindowCode() {
        return serviceWindowCode;
    }

    public void setServiceWindowCode(String serviceWindowCode) {
        this.serviceWindowCode = serviceWindowCode;
    }

    public String getSettlType() {
        return settlType;
    }

    public void setSettlType(String settlType) {
        this.settlType = settlType;
    }

    public Date getSettlBeginDate() {
        return settlBeginDate;
    }

    public void setSettlBeginDate(Date settlBeginDate) {
        this.settlBeginDate = settlBeginDate;
    }

    public Date getSettlEndDate() {
        return settlEndDate;
    }

    public void setSettlEndDate(Date settlEndDate) {
        this.settlEndDate = settlEndDate;
    }

    public BigDecimal getPrepayTotal() {
        return prepayTotal;
    }

    public void setPrepayTotal(BigDecimal prepayTotal) {
        this.prepayTotal = prepayTotal;
    }

    public BigDecimal getCostTotal() {
        return costTotal;
    }

    public void setCostTotal(BigDecimal costTotal) {
        this.costTotal = costTotal;
    }

    public BigDecimal getPreferTotal() {
        return preferTotal;
    }

    public void setPreferTotal(BigDecimal preferTotal) {
        this.preferTotal = preferTotal;
    }

    public BigDecimal getInsPayTotal() {
        return insPayTotal;
    }

    public void setInsPayTotal(BigDecimal insPayTotal) {
        this.insPayTotal = insPayTotal;
    }

    public BigDecimal getOffsetPrepayTotal() {
        return offsetPrepayTotal;
    }

    public void setOffsetPrepayTotal(BigDecimal offsetPrepayTotal) {
        this.offsetPrepayTotal = offsetPrepayTotal;
    }

    public BigDecimal getReturnMoney() {
        return returnMoney;
    }

    public void setReturnMoney(BigDecimal returnMoney) {
        this.returnMoney = returnMoney;
    }

    public BigDecimal getArrearage() {
        return arrearage;
    }

    public void setArrearage(BigDecimal arrearage) {
        this.arrearage = arrearage;
    }

    public String getTstatus() {
        return tstatus;
    }

    public void setTstatus(String tstatus) {
        this.tstatus = tstatus;
    }

    public String getInsSettTstatus() {
        return insSettTstatus;
    }

    public void setInsSettTstatus(String insSettTstatus) {
        this.insSettTstatus = insSettTstatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getOutReason() {
        return outReason;
    }

    public void setOutReason(String outReason) {
        this.outReason = outReason;
    }
}
